package com.oazon.moco.lan.core.http.bean;

import java.util.List;

public class UriToQueue {

	private List<Instance> Instances;
	
	public List<Instance> getInstances() {
		return Instances;
	}

	public void setInstances(List<Instance> instances) {
		Instances = instances;
	}

	public static class Instance {

		private int instanceID;
		
		private String enqueuedItemID;
		private String enqueuedServiceID;
		
		// 待插入队列的资源编号URI，格式为：<Protocol>:<ItemID>?sid=<MusicServicesID>
        // Protocol为待放入队列的内容来源协议，暂时为：x-o2-http或者x-o2-cpcontainer
        // 例如：x-o2-http:s634391?sid=47
		private String enqueuedURI;
		// 待插入资源的meta数据：
		private URIMetaData enqueuedURIMetaData;
		// 希望把新的内容插入到队列的哪个位置？=0最后，=N，表示插在N位置，
		private int desiredFirstTrackNumberEnqueued;
		// =0放到最后，=1表示接下来要播放（MC操作Play Next或者Play Now时）
		private int enqueueAsNext;

		public int getInstanceID() {
			return instanceID;
		}

		public void setInstanceID(int instanceID) {
			this.instanceID = instanceID;
		}
		
		public String getEnqueuedItemID() {
			return enqueuedItemID;
		}

		public void setEnqueuedItemID(String enqueuedItemID) {
			this.enqueuedItemID = enqueuedItemID;
		}

		public String getEnqueuedServiceID() {
			return enqueuedServiceID;
		}

		public void setEnqueuedServiceID(String enqueuedServiceID) {
			this.enqueuedServiceID = enqueuedServiceID;
		}

		public String getEnqueuedURI() {
			return enqueuedURI;
		}

		public void setEnqueuedURI(String enqueuedURI) {
			this.enqueuedURI = enqueuedURI;
		}

		public URIMetaData getEnqueuedURIMetaData() {
			return enqueuedURIMetaData;
		}

		public void setEnqueuedURIMetaData(
				URIMetaData enqueuedURIMetaData) {
			this.enqueuedURIMetaData = enqueuedURIMetaData;
		}

		public int getDesiredFirstTrackNumberEnqueued() {
			return desiredFirstTrackNumberEnqueued;
		}

		public void setDesiredFirstTrackNumberEnqueued(
				int desiredFirstTrackNumberEnqueued) {
			this.desiredFirstTrackNumberEnqueued = desiredFirstTrackNumberEnqueued;
		}

		public int getEnqueueAsNext() {
			return enqueueAsNext;
		}

		public void setEnqueueAsNext(int enqueueAsNext) {
			this.enqueueAsNext = enqueueAsNext;
		}

	}
}
